package com.session;


import io.netty.channel.Channel;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 聊天服务器的上下文
 */
public interface ChatServerContext {

    Channel getChannelByUserName(String userName);

    boolean deleteChannelByUserName(String userName);

    void addUserNameAndChannel(String userName,Channel socketChannel);

    String getUserNameByChannel(Channel socketChannel);

    Map<String, Channel> getUserNameMappingChannelMapByBatchUserNames(Collection<String> initGroupMembers);
}
